import request from '@/utils/request'

// 分页查询二维码
export function getLists(params) {
  return request({
    url: '/system/qrcode/list',
    method: 'get',
    params
  })
}

// 查询未绑定的二维码
export function getNotBIndList() {
  return request({
    url: '/system/qrcode/list',
    method: 'get',
    params: {
      bindStatus: '1'
    }
  })
}

// 新增
export function addQrcode(params) {
  return request({
    url: '/system/qrcode/adds',
    method: 'get',
    params
  })
}

// 删除二维码
export function delQrcode(id) {
  return request({
    url: '/system/qrcode/' + id,
    method: 'delete'
  })
}
